#pragma once

#include <QObject>
#include <QThread>
#include <QImage>
#include <QString>

class ImagePreloading : public QObject
{
    Q_OBJECT
private:
    /* data */
public:
    ImagePreloading(/* args */);
    ~ImagePreloading();

private:
    QImage image_pre, image_next;
    int cur_index = 0;
public slots:
    void loadImage(QStringList filePaths, int index);
    void clearImage();
signals:
    void imageLoaded(QImage);
};
